@foreach($data as $vo)
    @if(isset($vo['children']))
        <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                <span>{{$vo['title']}}</span>
                @if(!empty($vo['count']))
                    <span class="label label-warning">{{$vo['count']}}</span>
                @endif
            </a>
            <ul class="dropdown-menu" style="padding: 0;box-shadow: 0 2px 3px 0 rgba(0,0,0,0.46);">
                @foreach($vo['children'] as $vv)
                    <li style="height: 35px;">
                        <a style="display: block;height: 100%;line-height: 35px" href="{{$vv['href']}}">{{$vv['title']}} &nbsp;&nbsp;
                            @if(!empty($vv['count']))
                                <span style="color: red">({{$vv['count']}})</span>
                            @endif
                        </a>
                    </li>
                @endforeach
            </ul>
        </li>
    @else
        <li>
            <a href="{{$vo['href']}}">
                <span>{{$vo['title']}}</span>
                @if(!empty($vo['count']))
                    <span class="label label-warning">{{$vo['count']}}</span>
                @endif
            </a>
        </li>
    @endif
@endforeach
<style>
    .menu-group-header.on a {
        background: rgba(0, 0, 0, 0.1);
    }
</style>
